package com.lib.krismile.ui.web;

import androidx.lifecycle.MutableLiveData;

import com.lib.krismile.base.viewmodel.BaseViewModel;

/*
 * @author ： wangJiaWei
 * @date : 2021/3/29
 * @description ：
 */
public class SingleWebViewModel extends BaseViewModel {
    

    //webView设置标题内容
    private final MutableLiveData<String> singleWebTitle;

    //webView设置标题是否显示影藏
    private final MutableLiveData<Boolean> singleWebTitleIsVisibility;

    public SingleWebViewModel() {
        this.singleWebTitle = new MutableLiveData<>();
        this.singleWebTitleIsVisibility = new MutableLiveData<>();
    }


    public MutableLiveData<Boolean> getSingleWebTitleIsVisibility() {
        return singleWebTitleIsVisibility;
    }

    public void setSingleWebTitleIsVisibility(boolean isVisibility) {
        this.singleWebTitleIsVisibility.setValue(isVisibility);
    }

    public MutableLiveData<String> getSingleWebTitle() {
        return singleWebTitle;
    }

    public void setSingleWebTitle(String webTitle) {
        this.singleWebTitle.setValue(webTitle);
    }
}
